package com.sinsz.c.exception;

/**
 * 系统错误代码
 * @author chenjianbo
 */
public enum SystemError implements IError {

    SYSTEM_ERR("system-err", "系统异常"),
    SYSTEM_SQL_ERR("system-sql-err", "SQL执行异常"),

    ;

    private String code;

    private String message;

    SystemError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
